﻿using System;

namespace Matrix.MaKaYunShang.Model
{
	/// <summary>
	///Orders
	/// </summary>
	public class Orders
	{
        #region 默认属性
        /// <summary>
        /// 订单记录ID
        /// </summary>		
        public int Id { get; set; }
        /// <summary>
        /// 订单号
        /// </summary>		
        public string OrderNo { get; set; }
        /// <summary>
        /// 下单时间
        /// </summary>		
        public DateTime OrderTime { get; set; }
        /// <summary>
        /// 订单状态
        /// </summary>		
        public int OrderStatus { get; set; }
        /// <summary>
        /// 订单标题
        /// </summary>		
        public string OrderTitle { get; set; }
        /// <summary>
        /// 订单所属店铺
        /// </summary>		
        public int ShopId { get; set; }
        /// <summary>
        /// 店铺顾客编号
        /// </summary>		
        public string ShopCustomerNumber { get; set; }
        /// <summary>
        /// 原有定水电话
        /// </summary>		
        public string OldOrderPhone { get; set; }
        /// <summary>
        /// 商品总数
        /// </summary>		
        public int CommodityQuantity { get; set; }
        /// <summary>
        /// 实际付款
        /// </summary>		
        public decimal PayPrice { get; set; }
        /// <summary>
        /// 折扣后价格
        /// </summary>		
        public decimal DiscountPrice { get; set; }
        /// <summary>
        /// 折扣前价格
        /// </summary>		
        public decimal NormalPrice { get; set; }
        /// <summary>
        /// 随机立减金额
        /// </summary>		
        public decimal RandomPayDiscount { get; set; }
        /// <summary>
        /// 优惠券ID
        /// </summary>		
        public int CouponId { get; set; }
        /// <summary>
        /// 优惠券抵扣价格
        /// </summary>		
        public decimal CouponValue { get; set; }
        /// <summary>
        /// 订单支付方式
        /// </summary>		
        public int PayWay { get; set; }
        /// <summary>
        /// 线上支付订单记录ID
        /// </summary>		
        public int PaySerialId { get; set; }
        /// <summary>
        /// 收件人
        /// </summary>		
        public string ReceiverName { get; set; }
        /// <summary>
        /// 收件人电话
        /// </summary>		
        public string ReceiverPhone { get; set; }
        /// <summary>
        /// 收件人地址
        /// </summary>		
        public string ReceiverAddress { get; set; }
        /// <summary>
        /// 订单用户备注
        /// </summary>		
        public string Remark { get; set; }
        /// <summary>
        /// 订单系统备注
        /// </summary>		
        public string SysRemark { get; set; }
        /// <summary>
        /// 是否支付完成
        /// </summary>		
        public bool IsPayCompleted { get; set; }
        /// <summary>
        /// 下单用户Id
        /// </summary>		
        public int ConsumerId { get; set; }
        /// <summary>
        /// 下单用户名称/微信昵称
        /// </summary>		
        public string ConsumerName { get; set; }
        /// <summary>
        /// 派单员账户ID
        /// </summary>		
        public int AssignerAccountId { get; set; }
        /// <summary>
        /// 配送人账户ID
        /// </summary>		
        public int DeliveryAccountId { get; set; }
        /// <summary>
        /// 消费者备注送水时间
        /// </summary>		
        public string ConsumerSendTime { get; set; }
        /// <summary>
        /// 验货码
        /// </summary>		
        public string CheckCode { get; set; }
        /// <summary>
        /// 是否为平台订单
        /// </summary>		
        public bool IsPlatformOrder { get; set; }
        /// <summary>
        /// IsEndingAfterPaid
        /// </summary>		
        public bool IsEndingAfterPaid { get; set; }
        /// <summary>
        /// 订单所关联的分享令牌
        /// </summary>		
        public string ShareToken { get; set; }
        /// <summary>
        /// 经度
        /// </summary>		
        public string Longitude { get; set; }
        /// <summary>
        /// 纬度
        /// </summary>		
        public string Latitude { get; set; }
        /// <summary>
        /// 下单时IP
        /// </summary>		
        public string IpAddress { get; set; }
        /// <summary>
        /// 拷贝来源订单ID
        /// </summary>		
        public int OrderIdCopiedFrom { get; set; }
        /// <summary>
        /// IsConvertFromOldVirtual
        /// </summary>		
        public bool IsConvertFromOldVirtual { get; set; }
        /// <summary>
        /// PriceDiffOfCopiedOrder
        /// </summary>		
        public decimal PriceDiffOfCopiedOrder { get; set; }
        /// <summary>
        /// 订单类型 0 平台用户订单 1 水站用户订单
        /// </summary>		
        public int ConsumerOrderType { get; set; }
        /// <summary>
        /// 此订单是否已评论
        /// </summary>		
        public bool IsCommented { get; set; }
        /// <summary>
        /// 该订单是否可提现
        /// </summary>		
        public bool CanWithdraw { get; set; }
        /// <summary>
        /// 店铺是否可见该订单
        /// </summary>		
        public bool IsShopCanView { get; set; }
        /// <summary>
        /// 是否已删除（True已删除，False未删除）
        /// </summary>		
        public bool IsDelete { get; set; }
        #endregion

        #region 扩展属性
        /// <summary>
        /// 派单时间
        /// </summary>		
        public DateTime? AssignTime { get; set; }
        /// <summary>
        /// 配送时间
        /// </summary>		
        public DateTime? DeliveryTime { get; set; }
        /// <summary>
        /// 收货时间
        /// </summary>		
        public DateTime? ReceivingTime { get; set; }
        /// <summary>
        /// 订单完成时间
        /// </summary>		
        public DateTime? FinishTime { get; set; }
        /// <summary>
        /// 取消订单时间
        /// </summary>		
        public DateTime? CancelTime { get; set; }
        /// <summary>
        /// 拒单时间
        /// </summary>		
        public DateTime? RejectTime { get; set; }
        /// <summary>
        /// 催单时间
        /// </summary>		
        public DateTime? RemindTime { get; set; }
		#endregion
	}
}